package com.aaa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class Emp {
    private Integer id;

    private String name;

    private Integer age;

    private String job;

    private Integer salary;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date entrydate;

    private Integer managerid;

    private Integer deptId;

    private String headimg;

    private Dept dept;

    private Emp empSearchForm;

    public Emp getEmpSearchForm() {
        return empSearchForm;
    }

    public void setEmpSearchForm(Emp empSearchForm) {
        this.empSearchForm = empSearchForm;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Emp(Dept dept) {
        this.dept = dept;
    }

    public Emp() {
    }

    public Emp(Integer id, String name, Integer age, String job, Integer salary, Date entrydate, Integer managerid, Integer deptId, String headimg, Dept dept) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.job = job;
        this.salary = salary;
        this.entrydate = entrydate;
        this.managerid = managerid;
        this.deptId = deptId;
        this.headimg = headimg;
        this.dept = dept;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job == null ? null : job.trim();
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    public Date getEntrydate() {
        return entrydate;
    }

    public void setEntrydate(Date entrydate) {
        this.entrydate = entrydate;
    }

    public Integer getManagerid() {
        return managerid;
    }

    public void setManagerid(Integer managerid) {
        this.managerid = managerid;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg == null ? null : headimg.trim();
    }
}